package com.jy.api.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by lihu on 2017/12/26.
 * 商品供应时间段
 */
@Entity
@Data
@NoArgsConstructor
public class ProductSupplyTime {


    @Id
    @Column(length = 50)
    private String id;


    private String storeId;


    private String name;


    /**
     * 供应开始时间段
     */
    private int beginHour = 0;

    /**
     * 供应开始时间段
     */
    private int beginMinute = 0;

    /**
     * 供应开始时间段
     */
    private int endHour = 0;

    /**
     * 供应开始时间段
     */
    private int endMinute = 0;

    private boolean enabled = true;

    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date addTime;
    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;


}
